package myta.service;

import java.sql.Connection;
import java.sql.DriverManager;

public class Database {
	public static Connection dbConnection;
	
	public static boolean connectToDatabase() throws Exception{
		Class.forName("com.mysql.jdbc.Driver");
		dbConnection = DriverManager.getConnection("jdbc:mysql://localhost/myta", "root", "Anj1ng");
		if(dbConnection != null){
			return true;
		}
		return false;
	}
}
